minetest.register_node('furniture:chest_small', {
   description = 'Small Chest',
   drawtype = 'mesh',
   mesh = 'furniture_chest_small.obj',
   tiles = {'furniture_chest_small.png'},
   overlay_tiles = {{name='furniture_chest_small_overlay.png', color='white'}},
   paramtype = 'light',
   paramtype2 = 'colorfacedir',
   palette = 'furniture_stain_palette.png',
   selection_box = {
      type = 'fixed',
      fixed = {-.4, -.5, -.3, .4, .2, .4},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.4, -.5, -.3, .4, .2, .4},
      },
   groups = {breakable=1, stash=1},
   on_rightclick = furniture.right_click,
   on_punch = furniture.punch
})

minetest.register_node('furniture:chest', {
   description = 'Chest',
   drawtype = 'mesh',
   mesh = 'furniture_chest.obj',
   tiles = {'furniture_chest.png'},
   overlay_tiles = {{name='furniture_chest_overlay.png', color='white'}},
   paramtype = 'light',
   paramtype2 = 'colorfacedir',
   palette = 'furniture_stain_palette.png',
   selection_box = {
      type = 'fixed',
      fixed = {-.45, -.5, -.4, .45, .4, .5},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.45, -.5, -.4, .45, .4, .5},
      },
   groups = {breakable=1, stash=1},
   on_rightclick = furniture.right_click,
   on_punch = furniture.punch
})

minetest.register_node('furniture:chest_large', {
   description = 'Large Chest',
   drawtype = 'mesh',
   mesh = 'furniture_chest_large.obj',
   tiles = {'furniture_chest_large.png'},
   overlay_tiles = {{name='furniture_chest_large_overlay.png', color='white'}},
   paramtype = 'light',
   paramtype2 = 'colorfacedir',
   palette = 'furniture_stain_palette.png',
   selection_box = {
      type = 'fixed',
      fixed = {-.5, -.5, -.4, 1.5, .3, .5},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.5, -.5, -.4, 1.5, .3, .5},
      },
   groups = {breakable=1, stash=1},
   on_rightclick = furniture.right_click,
   on_punch = furniture.punch
})

minetest.register_node('furniture:tool_chest', {
   description = 'Tool Chest',
   drawtype = 'mesh',
   mesh = 'furniture_tool_chest.obj',
   tiles = {'furniture_tool_chest.png'},
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = {
      type = 'fixed',
      fixed = {{-.4357, -.5, -.375, 1.4375, .5, .4375},
               {-.375, .5, -.3125, 1.375, 1.25, .4375}
      }},
   collision_box = {
      type = 'fixed',
      fixed = {{-.5, -.5, -.5, 1.5, .5, .5},
               {-.4357, .5, -.3125, 1.4375, 1, .4375}
      }},
   groups = {breakable=1, stash=1},
})
